QT       += core gui  network  serialport

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++11

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

##⭐添加头文件路径

#INCLUDEPATH += /home/gec/tools/opencv-3.4/include   ./include  #linux下的路径编译
INCLUDEPATH += F:\yueqian\Qt\lower-levelDevice\tools\opencv-3.4\include    ./include  #Windows下的路径
unix:!macx{
INCLUDEPATH += /home/gec/tools/opencv-3.4/include   ./include  #linux下的路径编译
}
win32{
INCLUDEPATH += F:\yueqian\Qt\lower-levelDevice\tools\opencv-3.4\include    ./include  #Windows下的路径
}

##⭐添加库文件
LIBS += -L/home/gec/tools/opencv-3.4/lib  -lopencv_calib3d -lopencv_core -lopencv_dnn
LIBS += -lopencv_features2d -lopencv_flann -Flopencv_highgui -lopencv_imgcodecs -lopencv_imgproc
LIBS += -lopencv_ml -lopencv_objdetect -lopencv_photo -lopencv_shape -lopencv_stitching -lopencv_superres
LIBS += -lopencv_video -lopencv_videoio -lopencv_videostab


SOURCES += \
    ad.cpp \
    main.cpp \
    mainwindow.cpp \
    pagemanager.cpp \
    serialworker.cpp \
    src/CNNRecognizer.cpp \
    src/FastDeskew.cpp \
    src/FineMapping.cpp \
    src/Pipeline.cpp \
    src/PlateDetection.cpp \
    src/PlateSegmentation.cpp \
    src/Recognizer.cpp \
    src/SegmentationFreeRecognizer.cpp

HEADERS += \
    ad.h \
    include/CNNRecognizer.h \
    include/FastDeskew.h \
    include/FineMapping.h \
    include/Pipeline.h \
    include/PlateDetection.h \
    include/PlateInfo.h \
    include/PlateSegmentation.h \
    include/Recognizer.h \
    include/SegmentationFreeRecognizer.h \
    include/niBlackThreshold.h \
    mainwindow.h \
    pagemanager.h \
    serialworker.h \
    src/util.h


FORMS += \
    ad.ui \
    mainwindow.ui \

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

RESOURCES += \
    img.qrc
